#ifndef _MESSAGE_BOX_LAYER_H_
#define _MESSAGE_BOX_LAYER_H_

#include "cocos2d.h"
USING_NS_CC;

class MessageBoxLayer : public CCLayer
{
public:
	MessageBoxLayer();
	~MessageBoxLayer();

	CREATE_FUNC(MessageBoxLayer);

	virtual bool init();
	virtual void registerWithTouchDispatchar();
	virtual bool ccTouchbegan(CCTouch* pTouch, CCEvent* pCCEvent);
	virtual void ccTouchended(CCTouch* pTouch, CCEvent* pCCEvent);
	static MessageBoxLayer* GetInstance();
	void InitReason(int reson = 0);
	void SetWaitTime(float time);
	void SetReason(int re)		{ lougoutreson = re; }
private:
	CCNode* PlayerInfo;
	CCSize VisabaleSize;
	virtual void update(float dt);
	float ExitTimer;
	CCLabelTTF* ExitTimeText;
	int lougoutreson;
};




#endif